home *** CD-ROM | disk | FTP | other *** search
/ Directorty Opus 5 - Magellan 2 / Opus 5 - Magellan 2.iso / Extras / GCC_ERROR / Example Makefiles / makefile_cpp next >
Makefile  |  1997-03-26  |  1KB  |  56 lines

  1. #                                                                       170197Emmy
  2. # MakeFile mit GNU für 1stDemo
  3. #
  4.  
  5. #
  6. # Set Options 
  7. #
  8.  
  9. OSALHOME = home:emmy/projects/osal
  10. ADDINCS = $(OSALHOME)
  11. DODEBUG = -g
  12. OPTS = $(DODEBUG) -DAMIGA -Wall -Wno-unused -IGNU:include \
  13.        -IGNU:OS-Include -IInclude: -I$(ADDINCS)
  14. CC = gnu:bin/gcc 2>>t:MAKE.ERROROUT
  15. OSALLIB = $(OSALHOME)/osalamiga/libosal.a
  16. ABSTLIB = $(OSALHOME)osal/*.h
  17. ENGINELIB = $(OSALHOME)/3dengine/3dbase.o
  18.  
  19. #
  20. # Global Options
  21. #
  22.  
  23. SHELL = /gnu/bin/sh
  24.  
  25. #
  26. # Hauptsection
  27. #
  28.  
  29. ALL: 1StDemo.exe haus.iff
  30.  
  31. ######################
  32. # Rules
  33. ######################
  34.  
  35. %.o : %.cpp
  36.     @echo "Compiling $< ..."
  37.     @$(CC) -o $@ -c $< $(OPTS)
  38.  
  39. %.exe : %.o 
  40.     @echo "Linking $@ ..."
  41.     @$(CC) -o $@ $< $(ENGINELIB) $(OSALLIB) $(OPTS) -lstdc++ -lamiga -lauto
  42.     @Protect $@ REWD
  43.  
  44. %.iff : %.3dl
  45.     @echo "3DCompiling $@ ..."
  46.     @$(OSALHOME)/3dlcomp/3dlcomp.exe $<
  47.  
  48. ################################
  49. # Applications
  50. ################################
  51. 1StDemo.exe: 1StDemo.o
  52. 1StDemo.o: 1StDemo.cpp
  53. haus.iff: haus.3dl
  54.     @echo "3DCompiling $@ ..."
  55.     @$(OSALHOME)/3dlcomp/3dlcomp.exe $<
  56.